
import java.util.Arrays;
import java.util.Scanner;

public class no5 {
    public static void main(String[] args) throws Exception {
        Calculation calculation=new Calculation();
        System.out.println("print number");
        Scanner sc1=new Scanner(System.in);
        int i = sc1.nextInt();
        System.out.println("print tools");
        Scanner sc2=new Scanner(System.in);
        String  j= sc2.nextLine();
        System.out.println("print another number");
        Scanner sc3=new Scanner(System.in);
        int k = sc3.nextInt();
        if(j.equals("+")){
            System.out.println(calculation.plus(i,k));
        }else if(j.equals("-")){
            System.out.println(calculation.sub(i,k));
        }else if(j.equals("*")){
            System.out.println(calculation.mat(i,k));
        }else if(j.equals("/")){
            System.out.println(calculation.div(i,k));
        }else{
            throw new Exception("输入错误！");
        }
    }
}
